package com.zjff.mobiletwo.dao;

import com.zjff.mobiletwo.entity.OrderEntity;
import com.zjff.mobiletwo.entity.OrderItemEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDao {
    /**
     * 插入订单数据
     * @param orderEntity 订单数据
     * @return
     */
    Integer interOrder(OrderEntity orderEntity);

    /**
     * 插入订单项的数据
     * @param orderItemEntity 订单项数据
     * @return
     */
    Integer interOrderItem(OrderItemEntity orderItemEntity);
    List<OrderEntity> getOrderByUid(Integer uid);
    List<OrderEntity> getOrderByOid(Integer oid);
    Integer deleteByOid(Integer oid);
}
